<template>
  <div class="q-pa-md">
    <t-range
      v-model="model"
      color="#f33"
      :disable="false"
      :drag-only-range="false"
      :drag-range="true"
      :inner-min="-16"
      :inner-max="12"
      :min="-20"
      :max="20"
      :readonly="false"
      :step="2"
      :markers="true"
      :markerStep="4"
      :marker-labels="v => v + '℃'"
      :left-label-value="model.min + '度'"
      :right-label-value="model.min + '度'"
      :show-label="true"
      :label-always="true"
      :tabIndex="1"
      :visible="true"
      label="双花"
      :hideLabel="false"
      popLabelPosition="bottom"
      markerPosition="top"
    />
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        model: ref({
          min: -10,
          max: 5,
        }),
      };
    },
  };
</script>
